<?php
include_once "./libs/config.php";  
include_once "../functions.php"; 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="./Js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="./Js/index.js"></script>
<link rel="stylesheet" href="./Css/public.css" />
<link rel="stylesheet" href="./Css/index.css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<!-- base target="iframe"/ -->
<style>

	#page{	
		margin-top: 10px;	
		font:12px/16px arial
	}
	#page span{
		float:left;margin:0px 3px;
	}
	#page a{
		float:left;margin:0 3px;border:1px solid #ddd;padding:3px 7px; text-decoration:none;color:#666
	}
	#page a.now_page,#page a:hover{		
		color:#fff;background:#05c
	}
</style>
</head>
<body>
	<div id="top">
		<div class="menu">
			<a href="index.php">首页</a>					
		</div>
		<div class="exit">
		<?php 
			session_start(); 
		 	if(isset($_SESSION['uid'])) : ?> 
		 		<span>欢迎，<?php echo $_SESSION['name']; ?>		 
				<a href="logout.php" target="_self">退出</a></span>			
		<?php 
		    else : 
			    header("location:login.php");
		    endif; 
		?>
		</div>
	</div>
	<div id="left">
		<dl href="#content">
			<dt>内容</dt>
			<dd><a href="#">查看列表</a></dd>
			<dd><a href="#">新增许愿</a></dd>
		</dl>
		<dl>
			<dt>用户</dt>
			<dd><a href="#">管理员</a></dd>
			<dd><a href="#">功能标题</a></dd>
			<dd><a href="#">功能标题</a></dd>

		</dl>
		<dl>
			<dt>功能标题</dt>
			<dd><a href="#">功能标题</a></dd>
			<dd><a href="#">功能标题</a></dd>
			
		</dl>
	</div>